export default class Message {
    id: string;
    text: string;
    whoSentId: string;
    senderName: string;
    senderImageId: string | null = null;

    constructor(id: string,
                text: string,
                whoSentId: string,
                senderName: string,
                senderImageId: string | null = null) {
        this.id = id;
        this.text = text;
        this.senderName = senderName;
        this.senderImageId = senderImageId;
        this.whoSentId = whoSentId
    }
}